package com.syb.entity.function;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
 * ��Դ��
 * @author Administrator
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name="sys_resource")
public class SysResource implements Serializable{

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@Column(name="resource_name")
	private String resourceName;		//��Դ����
	@Column(name="resource_url")
	private String resourceUrl;			//��Դ·��
	/*@Column(name="parent_id")
	private Integer parentId;				//��Id
*/	private String text;				//Ԥ���ֶ�
	private String text2;				//Ԥ���ֶ�
	
	@OneToMany
	@JoinColumn(name="parent_id")
	private List<SysResource> sysResource =new ArrayList<SysResource>();
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getResourceName() {
		return resourceName;
	}
	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}
	public String getResourceUrl() {
		return resourceUrl;
	}
	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getText2() {
		return text2;
	}
	public void setText2(String text2) {
		this.text2 = text2;
	}
	public List<SysResource> getSysResource() {
		return sysResource;
	}
	public void setSysResource(List<SysResource> sysResource) {
		sysResource = sysResource;
	}
	
}
